/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn;

import cn.webrx.config.SpringConfig;
import cn.webrx.mapper.DbMaper;
import cn.webrx.mapper.MemberMapper;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

/**
 * <p>Project: mybatis2022 - SpringDemo
 * <p>Powered by webrx On 2022-04-11 11:15:37
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */

@SpringJUnitConfig(SpringConfig.class)
public class SpringDemo {
     @Autowired
     DbMaper dm;
     @Autowired
     MemberMapper mm;






     @Test
     void t2(){
          mm.queryAll().forEach(e->System.out.println(e.getTruename()));
     }

     @Test @DisplayName("测试一个效果")
     void t1(){
         System.out.println(dm.tbs());
     }
}
